package com.nzy.dao.mapper;

import com.nzy.entity.Stock;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface StockMapper {
    Integer deleteByPrimaryKey(Integer id);

    Integer insert(Stock record);

    Integer insertSelective(Stock record);

    Stock selectByPrimaryKey(Integer id);

    Stock selectBySkuId(String skuId);

    Integer updateByPrimaryKeySelective(Stock record);

    Integer updateByPrimaryKey(Stock record);

    Integer addStock(Stock record);

    Integer subStock(Stock record);
}